package com.jwsoft.manager.common.enums;

public enum EduDataTaskTypeEnum {

    dcl("0", "待处理"),
    dqy("1", "待迁移"),
    djm("2", "待加密"),
    dxh("3", "待销毁"),
    dqr("4", "待确认"),
    success("5", "完成");

    private String type;
    private String name;

    private EduDataTaskTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static EduDataTaskTypeEnum getByType(String type) {
        for (EduDataTaskTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
